import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;


public class Query {
	public static void main (String[] args) throws IOException{

		int[] produtos = {2045354,2560669,1464739,2461553,2545751,2402169,2185210,2185245,2277247,
				2423178,2345957,907251,1319184,1319255,2466504,1690450,2458226,2594380
				,7625
				,2768630
				,2194970
				,2768597
				,1019517
				,2152266
				,2666194
				,2768499
				,716286
				,2314763
				,2314745
				,2420013
				,1369838
				,2485887
				,2485143
				,2612611
				,2542615
				,2616862
				,2616620
				,2616601
				,2616586
				,2658826
				,2658862
				,2658844
				,2668798
				,2110032
				,1750763
				,1990420
				,183261
				,2187604
				,2716349
				,2651217
				,2551454
				,2640975
				,2573139
				,2424587
				,2693487
				,2768668
				,2472762
				,1640976
				,2640198
				,2651191
				,2651164
				,2712401
				,2712420
				,2712386
				,2652457
				,2617233
				,2650659
				,2577245
				,2577236
				,2640320
				,2726022
				,2607504
				,2640330
				,1883119
				,2503760
				,2085399
				,2671980
				,2486409
				,2671953
				,2085402
				,2109786
				,1490309
				,1490283
				,2691277
				,2691286
				,1731955
				,1731947
				,2298383
				,2269376
				,2269414
				,2122863
				,2122790
				,2295031
				,2393758
				,2593697
				,2393810
				,1994140
				,1994131
				,1010502
				,2355040
				,2355050
				,2228009
				,2393337
				,2393319
				,1795066
				,2487110
				,2434449
				,405183
				,2487068
				,2621380
				,2479736
				,2152916
				,2716320
				,1834827
				,2291810
				,2189291
				,2621460
				,1877917
				,2085330
				,2083698
				,2612596
				,2716330
				,2573166
				,2298249
				,2778486
				,2778495
				,2457980
				,2153866
				,2251000
				,2236036
				,1805568
				,2236010
				,2243644
				,2557592
				,2177420
				,2621414
				,2083655
				,2127938
				,1970518
				,2194953
				,2651235
				,2495005
				,2494984
				,2768363
				,2054256
				,1834835
				,2417045
				,2482455
				,2571671
				,2693440
				,2717785
				,2717829
				,2419970
				,1971484
				,2557654
				,2532341
				,2532305
				,2532323
				,2612513
				,1949179
				,1862880
				,1862901
				,2419658
				,2054345
				,2153050
				,1069537
				,2708688
				,2530131
				,2417081
				,2539899
				,2612451
				,2666200
				,2665277
				,2666078
				,2357555
				,2419433
				,2054221
				,2768514
				,2693398
				,2693585
				,2479558
				,2612578
				,2366527
				,2482642
				,2666120
				,2455995
				,2605770
				,2483040
				,2160145
				,2073315
				,2209756
				,2513560
				,2486131
				,2716483
				,2557574
				,2621441
				,1825348
				,2693530
				,2716296
				,2666158
				,2575320
				,2456105
				,2694546
				,1891189
				,2419362
				,2533349
				,2651253
				,2012197
				,2651271
				,2709907
				,2768686
				,2585087
				,2075920
				,2666102
				,2419854
				,2575296
				,2557618
				,1795058
				,2374037
				,2288206
				,2487184
				,2480209
				,1110295
				,1934155
				,1635158
				,2664636
				,2672727
				,2432346
				,2616361
				,2321534
				,2673475
				,2459635
				,2220687
				,2220709
				,2429823
				,2480002
				,2482778
				,2766064
				,2443045
				,2698536
				,2610134
				,2251930
				,2427613
				,2577094
				,2691043
				,2691061
				,2625610
				,2625594
				,2664126
				,2665535
				,2665517
				,2649264
				,2630692
				,2574421
				,2574430
				,2468840
				,2625665
				,2625674
				,2741655
				,2741619
				,2741717
				,2740952
				,2741664
				,2741673
				,2741593
				,2741726
				,2741646
				,2741600
				,2741637
				,2741628
				,2442450
				,2709809
				,2591351
				,2591469
				,2591450
				,2631878
				,2591422
				,2591431
				,2741771
				,2766340
				,2741744
				,2766350
				,2741762
				,2741735
				,2741806
				,2771064
				,2741833
				,2741851
				,2741780
				,2086980
				,2042126
				,2432687
				,2752327
				,2664304
				,2766420
				,2766458
				,2767974
				,2195364
				,2195348
				,2195356
				,2195330
				,2260352
				,2468732
				,2194406
				,2194392
				,2590265
				,2590238
				,2590256
				,2186543
				,1654551
				,2574299
				,2492999
				,2053543
				,2053527
				,2186535
				,2673279
				,2359667
				,2359522
				,2593098
				,2042134
				,2042193
				,2042207
				,2432622
				,2760543
				,2760525
				,1946595
				,2664260
				,2472575
				,2542203
				,2760472
				,2406542
				,2590327
				,2590318
				,2136821
				,2760436
				,2760454
				,2760481
				,2590309
				,2042169
				,2328400
				,2572060
				,2497977
				,2287650
				,2680999
				,2681010
				,2542099
				,2760507
				,2087057
				,2542188
				,2499087
				,2542123
				,2052717
				,2673288
				,2717749
				,2400093
				,2400100
				,2680970
				,2640394
				,2717687
				,2363089
				,2717696
				,2083485
				,2697870
				,2628110
				,2628120
				,2697860
				,2752265
				,2752274
				,2663666
				,2663933
				,2605902
				,2711843
				,2711852
				,2752210
				,2748790
				,2748754
				,2748772
				,2748781
				,2591342
				,2711861
				,2542400
				,2717730
				,2542301
				,2348940
				,2344440
				,2159457
				,2159430
				,2381695
				,2159414
				,2677821
				,2484066
				,2612237
				,2386403
				,2668733
				,2628101
				,2628059
				,2593150
				,2612676
				,1992813
				,2560687
				,2560711
				,2628157
				,2752111
				,2771037
				,2118459
				,2618974
				,2684719
				,2487139
				,2153076
				,2576918
				,2693413
				,1970224
				,2732520
				,2339388
				,2732549
				,2052709
				,2500141
				,2630825
				,2237350
				,2400208
				,1968750
				,2618885
				,2486937
				,2618858
				,2486919
				,2693360
				,2419907
				,2010070
				,2651155
				,2588561
				,2630790
				,2487157
				,2052695
				,2052679
				,2393874
				,2393883
				,2414929
				,2399751
				,2472913
				,2393865
				,2393856
				,2630745
				,2630754
				,2107040
				,1970240
				,2693422
				,2693549
				,2420096
				,2668887
				,2288249
				,2530122
				,2368890
				,2605831
				,2605798
				,2605813
				,2605804
				,2102196
				,2766313
				,2766304
				,2766322
				,2212528
				,2630674
				,2502389
				,2550896
				,2363329
				,2502208
				,2147262
				,2575394
				,2399608
				,2432159
				,2097362
				,2492578
				,2419700
				,2275082
				,2612569
				,2336564
				,2362798
				,2429260
				,2635447
				,2542070
				,2432140
				,2363534
				,2456277
				,2553243
				,2616423
				,2740550
				,2673303
				,2753511
				,2682901
				,1047119
				,2691016
				,2557458
				,2557387
				,2565100
				,2691025
				,2557476
				,2565084
				,2557411
				,1984977
				,1984950
				,2557340
				,2407675
				,2688155
				,1446196
				,2688164
				,2335932
				,2693137
				,2693146
				,2693164
				,2693155
				,2640385
				,2616559
				,2616512
				,2616540
				,2616530
				,2456393
				,2484834
				,2197170
				,2098687
				,2756489
				,2756513
				,2657480
				,2657471
				,2625692
				,2625683
				,2657462
				,2625709
				,2645434
				,2619158
				,2664369
				,2617313
				,2619167
				,2619176
				,2619194
				,2650597
				,2650603
				,2650588
				,2650523
				,2748807
				,2620767
				,2748816
				,2620856
				,2698124
				,2657417
				,2657435
				,2657426
				,2500580
				,2664340
				,2534711
				,2459644
				,2498419
				,2321392
				,2504516
				,2709872
				,2709881
				,2493305
				,2493341
				,2493655
				,2434411
				,2661311
				,2002825
				,2631401
				,1794264
				,2605840
				,2710953
				,2711010
				,2650630
				,2575483
				,2575509
				,2575518
				,1336176
				,2565852
				,2058685
				,2047128
				,1769626
				,2635017
				,2493181
				,2516651
				,2121247
				,2574898
				,2574913
				,2083957
				,2125226
				,1938193
				,2574824
				,2574851
				,2432266
				,2432435
				,2081261
				,1156534
				,1119503
				,2616272
				,2080940
				,2081270
				,1566229
				,1569623
				,1566292
				,2635330
				,2635062
				,2284561
				,2268833
				,2251701
				,2622529
				,2634305
				,1998420
				,2479988
				,2033119
				,2235102
				,2235099
				,2622500
				,2622510
				,2622494
				,2627884
				,2627982
				,2480343
				,2314861
				,2673457
				,2593211
				,2502754
				,2620918
				,2485125
				,2584277
				,2584286
				,2177897
				,2491525
				,1442778
				,1476462
				,1297908
				,1219385
				,2616503
				,2616773
				,2542259
				,1881175
				,1476435
				,2217180
				,2079330
				,2287684
				,2281430
				,2079356
				,2073790
				,2079429
				,2189658
				,2336644
				,2502745
				,2752040
				,2752069
				,1879421
				,2386216
				,2752087
				,2752102
				,2400932
				,2560720
				,2443582
				,2673420
				,2673439
				,1008783
				,2485199
				,1911295
				,2557485
				,2484048
				,2502727
				,2508622
				,2484057
				,2669982
				,2574931
				,2670820
				,2670849
				,2737948
				,2737966
				,1419152
				,1416188
				,1911414
				,1911376
				,2691099
				,2681029
				,1780794
				,835595
				,2502718
				,2507877
				,2151154
				,2756522
				,2756569
				,2726031
				,2617930
				,2363383
				,2433307
				,2704698
				,2730769
				,2730704
				,2704731
				,2704704
				,2704778
				,2704769
				,2704787
				,2704858
				,2704820
				,2704876
				,2704900
				,2704849
				,2704830
				,2704802
				,2511056
				,2774727
				,2766126
				,2328105
				,2329050
				,2709685
				,2542132
				,2399789
				,2397541
				,2542179
				,2103044
				,2293350
				,1770454
				,2296511
				,2054680
				,1620541
				,2704811
				,2265923
				,1869035
				,338664
				,2267942
				,2266415
				,2266431
				,722324};

		String sql = "";
		for(int pos =0; pos< produtos.length; pos++){	  
			sql += "insert into b2c_monitorlucene VALUES (nextval('seq_b2c_monitorlucene'), 1," +produtos[pos]+", now());\n";

			Writer output = null;
			File file = new File("/home/drocha/lucene.sql");
			output = new BufferedWriter(new FileWriter(file));
			output.write(sql);
			output.close();
			//System.out.println("insert into b2c_monitorlucene VALUES (nextval('seq_b2c_monitorlucene'), 1," +produtos[pos]+", now());");
		}

	}
}
